package cn.stylefeng.guns.modular.business.pojo;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 封装类
 *
 * @author zhangyaowen
 * @date 2021/09/13 15:11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ResourceInfoRequest extends BaseRequest {

    /**
     * 资讯id
     */
    @NotNull(message = "资讯id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("资讯id")
    private Long id;

    /**
     * 资讯名
     */
    @NotBlank(message = "资讯名不能为空", groups = {add.class, edit.class})
    @ChineseDescription("资讯名")
    private String resourceName;

    /**
     * 资讯内容
     */
    @ChineseDescription("资讯内容")
    private String resourceContent;

    /**
     * 资讯来源
     */
    @ChineseDescription("资讯来源")
    private String resourceFrom;

    /**
     * 资讯发布时间
     */
    @ChineseDescription("资讯发布时间")
    private String resourceTime;

    /**
     * 资讯类型
     */
    @ChineseDescription("资讯类型")
    private Long resourceType;

    /**
     * 资讯文件
     */
    @ChineseDescription("资讯文件")
    private String resourceFile;

}